#ifndef _LOGGER_H
#define	_LOGGER_H

#include "stm32f4xx_hal.h"

#define	ONE_ITM_LOG_LENGHT	25
#define	LOGGER_LENGTH				100
#define	DATE_LENGTH					22

void LoggerIni(void);
void LoggerOneItmPack(uint8_t	*pos, uint8_t *group, uint8_t *item, float value, uint8_t *typ, int32_t open, uint32_t vshort, uint8_t *result);
void WriteLoggerToW25QXX(void);
void ReadLoggerFromW25QXX(uint8_t logger_num);
void LoggerOneItmUnPack(uint8_t	*buf);
void ClearLogger(void);

#endif
